#!/bin/sh

# -----------------------------------------------------------
# Twittero - Powerful Twitter client
# Audtool2 script for Audacious2
# -----------------------------------------------------------
# $author: Facundo M. de la Cruz <fmdlc@code4lfie.com.ar>
# $license: BSD License - $depends: audacious2 - audtool2
# -----------------------------------------------------------

if [[ $(audtool2 playback-status 2> /dev/null) == "playing" ]]; then
  PLAYING=$(audtool2 current-song 2> /dev/null)
  printf "%s " $PLAYING
else
  printf "noplaying" 
fi

exit $?
